home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / editor / xe353.zip / XE.DOC next >
Text File  |  1992-08-10  |  35KB  |  1,053 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                                     heXEdit
  13.  
  14.  
  15.  
  16.                                   Version 3.53
  17.  
  18.                                     8-10-92
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.                                  Robert Stuntz
  28.                             1747 Crystal Lane   #610
  29.                             Mt. Prospect, IL.  60056
  30.  
  31.  
  32.                              CompuServe : 71043,117
  33.                                 GEnie : R.STUNTZ
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  ---  heXEdit  -------------------------------------  Page 1  ---
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.                                    DISCLAIMER
  73.  
  74.        THIS SOFTWARE AND MANUAL ARE DISTRIBUTED "AS IS" AND WITHOUT
  75.        WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER
  76.        WARRANTIES WHETHER EXPRESSED OR IMPLIED.  BECAUSE OF THE VARIOUS
  77.        HARDWARE AND SOFTWARE ENVIRONMENTS INTO WHICH THIS PROGRAM MAY BE
  78.        PUT, NO WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED AND
  79.        ALL LIABILITY IN THE USE AND AFFECTS OF THIS PROGRAM SHALL REST
  80.        WITH THE USER.
  81.  
  82.        THIS PROGRAM HAS THE ABILITY TO ALTER YOUR FILES! YOU ARE
  83.        RESPONSIBLE!   (Sorry, but I have to warn you ...)
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  ---  heXEdit  -------------------------------------  Page 2  ---
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.                                TABLE OF CONTENTS
  139.                                -----------------
  140.  
  141.   A. Introduction  ..................................................  4
  142.   B. Starting heXEdit  ..............................................  4
  143.   C. Command Line Options  ..........................................  4
  144.   D. Loadfile box  ..................................................  5
  145.     1. File Attributes  .............................................  6
  146.   E. Main display  ..................................................  6
  147.   F. Commands  ......................................................  6
  148.     1. Help  ........................................................  7
  149.     2. ASCII chart  .................................................  8
  150.     3. Base convert  ................................................  8
  151.     4. Colors  ......................................................  9
  152.     5. Decimal offset #'s  ..........................................  9
  153.     6. Edit  ........................................................  9
  154.     7. Goto offset  ................................................. 11
  155.     8. Hexadecimal offset #'s  ...................................... 11
  156.     9. Load new file  ............................................... 11
  157.     10. Mark position  .............................................. 11
  158.     11. Search again  ............................................... 12
  159.     12. Octal offset #'s  ........................................... 12
  160.     13. Retrieve position  .......................................... 12
  161.     14. Search  ..................................................... 12
  162.     15. Clear marker entries  ....................................... 13
  163.     16. Alt+1 thru Alt+9  ........................................... 13
  164.   G. Other Notes  ................................................... 13
  165.   H. Comments  ...................................................... 14
  166.  
  167.   Appendix
  168.     A. Version history  ............................................. 14
  169.     B. Trademark information  ....................................... 16
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  ---  heXEdit  -------------------------------------  Page 3  ---
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.   A. Introduction
  205.  
  206.  
  207.  
  208.         heXEdit (XE) is a program that will allow you to display and/or
  209.         edit any file. It doesn't have a fancy interface but serves my
  210.         purposes perfectly. I wrote this program because I became
  211.         frustrated with a couple of other commercial programs.  They
  212.         either had some annoying peculiarities or required too much
  213.         thought on my part just to search for and change a couple of
  214.         bytes.
  215.  
  216.  
  217.         heXEdit was written using Turbo Pascal v6.0, although it
  218.         doesn't use any of Borland's object libraries. It does however
  219.         write directly to the screen for speed when scrolling thru the
  220.         file. If you're using a CGA monitor you may see some 'snow' as
  221.         I don't check for the vertical retrace period before writing to
  222.         the screen.
  223.  
  224.  
  225.         heXEdit will keep no more than 1760 bytes of the file you load
  226.         in memory at a time, as I didn't feel like messing with a
  227.         variable amount of memory available. heXEdit requires about
  228.         110k bytes of free memory in order to execute.
  229.  
  230.  
  231. B. Starting heXEdit
  232.  
  233.  
  234.         To start heXEdit, enter
  235.  
  236.         XE [option] [<drive>:][<filename>]
  237.  
  238.  
  239.         The drive designator, filename and option are ... optional on
  240.         the command line. If only a drive designator is specified, XE
  241.         will show you the files from that drive's current directory.
  242.         If a file is specified XE will try to load that file, if not,
  243.         you will see a list of files from the current directory. All of
  244.         the available command line options are explained in the
  245.         following section.
  246.  
  247.  
  248. C. Command Line Options
  249.  
  250.  
  251.         Available command line options are as follows :
  252.  
  253.   1. /C
  254.  
  255.         This option tells XE to use it's default color set.
  256.  
  257.   2. /M
  258.  
  259.  
  260.  
  261.  ---  heXEdit  -------------------------------------  Page 4  ---
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.         This option tells XE to use black and white colors; for
  271.         monochrome monitors.
  272.  
  273.   3. ? or /? or /H
  274.  
  275.         Any of these three options will display a short (very short)
  276.         message about the start-up syntax.
  277.  
  278.  
  279. D. Loadfile box
  280.  
  281.  
  282.         If you did not specify a file on the command line when you
  283.         started XE, you will next see a list of files. To load one of
  284.         these files simply use the up and down arrow keys to move the
  285.         highlight bar to the file you want to load, then press <ENTER>.
  286.         You can also use the <pageup> and <pagedown> keys to scroll
  287.         thru the list of files a page at a time. Pressing the <home>
  288.         key will move you to the top of the list, pressing <end> moves
  289.         you to the end of the list.
  290.  
  291.         The files and directories in the Loadfile box are sorted.
  292.         Directories are listed first followed by the files.
  293.  
  294.         At the end of the list of files you will see one or more drive
  295.         designators. The available drives you can choose from are all
  296.         the drives up to and including the drive specified by the
  297.         lastdrive statement in your CONFIG.SYS file. Selecting one of
  298.         these will show you the files in that drive's current
  299.         directory.
  300.  
  301.  
  302.         While using the Loadfile box, you may encounter an error, for
  303.         one reason or another. Generally speaking, you will be given
  304.         one, some or all of the options below :
  305.  
  306.           1 - (A)bort : if you press 'A' XE will abort the operation.
  307.  
  308.           2 - (R)etry : press 'R' to retry the operation. (Maybe the
  309.               drive door was opened before you hit <ENTER> to load the
  310.               file.)
  311.  
  312.           3 - (Q)uit XE : press 'Q' to quit XE and return to the DOS
  313.               prompt (or wherever it was that you came from).
  314.  
  315.           4 - Any other key : if you hit any other key than the ones
  316.               described above you will be returned to the Loadfile box.
  317.  
  318.  
  319.         While in the Loadfile box, pressing <ESC> will exit the
  320.         Loadfile box and either 1) return you to the last file you were
  321.         editing, or if no file was previously loaded 2) exit XE
  322.         altogether.
  323.  
  324.  
  325.  
  326.  
  327.  ---  heXEdit  -------------------------------------  Page 5  ---
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.   1. File Attributes
  337.  
  338.  
  339.         One last feature of the Loadfile box is that you can change the
  340.         attributes of a file simply by pressing F5-F8 (providing the
  341.         file is available; i.e., the disk is in the drive etc.) Move
  342.         the highlight bar to file you want to work with and then simply
  343.         hit one of the following, depending on what you want to do.
  344.  
  345.                 F5 - toggles the Archive bit
  346.                 F6 - toggles the System bit
  347.                 F7 - toggles the Hidden bit
  348.                 F8 - toggles the Read_Only bit
  349.  
  350.         If the attribute change was successful you will hear a high
  351.         pitch tone, otherwise you will hear a lower tone indicating that
  352.         the attribute could not be changed for one reason or another.
  353.         You should also see the attribute change in the Loadfile box if
  354.         the change was successful.
  355.  
  356.     *** NOTE : Be sure you know what affect changing an attribute
  357.         will have on your system. Some programs act on the attributes
  358.         of a file or may even require certain attributes to be set.
  359.  
  360.  
  361. E. Main Display
  362.  
  363.  
  364.         Once the file is loaded you will see the main display.  At the
  365.         top is the name of the file loaded. On the left side of the
  366.         display are numbers (in hexadecimal,decimal or octal)
  367.         indicating the offset into the file. In the middle are 22 rows
  368.         of 16 bytes which are the file's contents. On the right, the
  369.         ASCII character for each byte in that row. In the ASCII portion
  370.         of the display, any characters past the EOF (end-of-file) are
  371.         shown as a '.' (ASCII #249).  On the bottom is a status word
  372.         indicating your current operation, a three letter abbrev
  373.         indicating whether the offset display is in 'hex'adecimal,
  374.         'dec'imal, or 'oct'al, the percentage into the file from the
  375.         top line, and the size of the file in decimal.
  376.  
  377.  
  378. F. Commands
  379.  
  380.  
  381.         Following is a list of commands once you are in XE and then a
  382.         brief explanation of each :
  383.  
  384.  
  385.         F1- Help
  386.         A/Alt+A - ASCII table
  387.         B/Alt+B - Base conversion (decimal-hexadecimal-binary)
  388.         C - Change colors
  389.         D - Change offset display to Decimal
  390.  
  391.  
  392.  
  393.  ---  heXEdit  -------------------------------------  Page 6  ---
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.         E - Edit the file
  403.         G - Goto offset
  404.         H - Change offset display to Hexadecimal
  405.         L - Bring up the Loadfile box
  406.         M - Push position on marker stack
  407.         N - Search again (using the last used search string)
  408.         O - Change offset display to Octal
  409.         R - Retrieve position from marker stack
  410.         S - Search (for text or a byte string)
  411.         Z - Clear all entries from marker stack
  412.         ALT+1 thru ALT+9 - Goto marked position
  413.  
  414.         Up/Down arrow keys - scroll up and down one line at a time
  415.         PgDn/PgUp          - move up/down one page at a time
  416.         Home               - move to the beginning of the file
  417.         End                - move to the end of the file
  418.         ESC/Alt+X          - quit XE
  419.  
  420.  
  421.  
  422.   1. F1         - Help
  423.  
  424.         Pressing <F1> will display a help screen. You now have the
  425.         following command available :
  426.  
  427.         F1 : Help on Help
  428.         F2 : Display index (keywords) for items in the help file
  429.         F3 : Goto the previous screen (limited)
  430.         F5 : Zoom/Unzoom the help screen
  431.  
  432.         Enter          : Get help on a highlighted keyword
  433.         Arrow keys     : Scroll the help screen contents left, right,
  434.                          up and down
  435.         ESC            : Exits help
  436.         Tab / Shft+Tab : Highlight the next/previous visible
  437.                          keyword
  438.         Page Up/Down   : Move up and down a page at a time
  439.         Home/End       : Goto the beginning/end of the help info for
  440.                          the current item
  441.  
  442.  
  443.  
  444.         In the upper left corner of the help screen (in the border),
  445.         you may see a number and possibly one of three arrow
  446.         characters. The number is the left column, of the help info,
  447.         you are at. If you are at column one, it will not be displayed.
  448.         The arrow characters indicate if there is more info either
  449.         above or below (or both) of your position.
  450.  
  451.  
  452.         A couple of notes on the help file.
  453.  
  454.         1. heXEdit expects the help file (XE.HLP) to be in the
  455.         directory that XE.EXE is in. If it is not, you will
  456.  
  457.  
  458.  
  459.  ---  heXEdit  -------------------------------------  Page 7  ---
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.         get an error message when you invoke help.
  469.  
  470.         2. If you modify the help file, make sure your keywords
  471.         are capitalized and start in column one. It will
  472.         probably be easier to just look at the help file that
  473.         came with heXEdit to see how it's done.
  474.  
  475.         3. There is a limit of 75 lines of information per
  476.         keyword.
  477.  
  478.         4. Keyword information begins with it's keyword and
  479.         ends with a slash (#47).
  480.  
  481.         5. To create a keyword in a help screen, precede the
  482.         keyword with a tilde (#126) and end it with a
  483.         back-quote (#96).
  484.  
  485.  
  486.  
  487.   2. A or Alt+A - Display ASCII chart.
  488.  
  489.         ASCII chart commands :
  490.           Left arrow key  : go back 16 characters
  491.           Right arrow key : go forward 16 characters
  492.           PageUp          : go back 128 characters
  493.           PageDown        : go forward 128 characters
  494.           D               : display numbers in decimal
  495.           H               : display numbers in hexadecimal
  496.           ESC or Enter    : exits ASCII chart
  497.  
  498.  
  499.   3. B or Alt+B - Convert a number from either decimal, hexadecimal or
  500.                   binary to the other two.
  501.  
  502.         Base convert commands :
  503.           Up/Down arrow keys  : select the base of the input number
  504.           Enter               : convert the number
  505.           ESC                 : exit the base convert routine
  506.  
  507.         Using the arrow keys, move the highlight bar to the
  508.         base of the input number and then either 1) press
  509.         <ENTER> and enter the number or 2) just start typing
  510.         the number. After the number has been converted, press
  511.         any key to select the base for another conversion or
  512.         press <ESC> to exit.
  513.  
  514.         When you enter the number, I only check for validity
  515.         with the first character. If you try to convert an
  516.         invalid number an error message will be displayed. The
  517.         largest number that can be accurately converted is a 32
  518.         bit number. It has a very simple input routine, so
  519.         don't be surprised if you can enter an invalid number.
  520.         The conversion will be incorrect of course. I leave
  521.         it mostly up to you to enter a valid number.
  522.  
  523.  
  524.  
  525.  ---  heXEdit  -------------------------------------  Page 8  ---
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.   4. C          - Change colors
  536.  
  537.         This command will allow you to change the color of just about
  538.         anything. You can also save the colors you choose so that XE
  539.         will startup with those colors.
  540.  
  541.         Simply select the area you want to change the color in
  542.         by pressing a letter 'A' thru 'O'. A colorbox of all
  543.         possible colors will appear. The current color of the
  544.         item you selected will have two white bars on either
  545.         side of an 'X'. You can now move those white bars
  546.         around with the arrow keys to select a new color. With
  547.         the white bars around the color scheme you want, press
  548.         <ENTER>. If you change your mind and don't want to
  549.         change the color after all, press <ESC>.
  550.  
  551.         There are a couple areas that have a color selection
  552.         restriction. Area 'G', Altered bytes background, you
  553.         can only select the background, the foreground is the
  554.         same as the main bytes (area 'A'). And the border for
  555.         Help, only the foreground can be selected as it's
  556.         background is the same as the Help text (area 'L').
  557.  
  558.         Color Change Commands :
  559.  
  560.         F1        : get help
  561.         A-O       : select the area you want to change
  562.         S         : save the currently selected colors to XE.EXE
  563.         ESC/Enter : exit the color change screen
  564.  
  565.         The 'S' command will save the currently selected colors
  566.         to the executable file (XE.EXE). If XE.EXE is not
  567.         available where it was started from, an error message
  568.         will be displayed to that effect, which means your
  569.         colors have not been saved.
  570.  
  571.         If you want the default colors back, start-up XE with
  572.         the /C option. If you want to retain the default colors
  573.         make sure you then save the colors, otherwise the next
  574.         time you start XE you will have whatever colors were
  575.         last saved in XE.EXE.
  576.  
  577.  
  578.   5. D          - Change the offset display to base 10, decimal.
  579.  
  580.  
  581.   6. E          - Edit
  582.  
  583.         Begin editing the file at the current position.  If the file is
  584.         a READ ONLY file, a short message to that affect will appear
  585.         and you will be returned to the view mode. Of course, you could
  586.         just press 'L' to bring up the Loadfile box and change the READ
  587.         ONLY attribute of the file with F8.  And then go back and edit.
  588.  
  589.  
  590.  
  591.  ---  heXEdit  -------------------------------------  Page 9  ---
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.         But, it might be READ ONLY for a reason ...
  601.  
  602.         If you had previously searched the file successfully (meaning
  603.         you found an item) then if that exact item is displayed on
  604.         screen when you go to edit mode, then the cursor will be
  605.         positioned at the first character of that item. When I say
  606.         exact item, I mean the last item that you found in your search.
  607.  
  608.  
  609.         Edit commands :
  610.           F1              : get help
  611.           Alt+A           : displays the ASCII chart
  612.           Alt+B           : base number conversion
  613.  
  614.           BackSpace/Left arrow key  : move cursor left 1 byte
  615.           Right arrow key : move cursor right 1 byte
  616.           PageUp          : move cursor to first line on page
  617.           PageDown        : move cursor to last line on page
  618.           Home            : move cursor to beginning of line
  619.           End             : move cursor to end of line
  620.  
  621.           TAB : toggle cursor position between the hexadecimal display
  622.                 and the ASCII display of the file. The above editing
  623.                 commands will move the cursor within the area the
  624.                 cursor is in.  You can edit the file making changes in
  625.                 both areas at the same time, if so desired.
  626.  
  627.           ESC/Enter : quit editing. If you made changes you will be
  628.                       prompted to save the changes or not.  Press 'Y'
  629.                       to save the changes or 'N' to lose the changes.
  630.                       Only the portion of the file that is in memory
  631.                       is actually saved. So don't worry about waiting
  632.                       for a long save if you are editing a large
  633.                       file.  You are then returned to the View mode.
  634.  
  635.         To change a value when in the hexadecimal portion, just
  636.         type in it's new value. The background of the character
  637.         will change, indicating which bytes have been changed.
  638.         Valid values are '00' - 'FF'. Obviously, pressing a key
  639.         like 'P' will do nothing because 'P' is not a valid
  640.         hexadecimal character. A special note, once you change
  641.         the left half of the byte, you must continue and change
  642.         the right half also.
  643.  
  644.         To change a value when in the ASCII portion of the
  645.         display, simply press the key of the new value. Or,
  646.         hold down the ALT key while typing the ASCII code
  647.         of the character you want, then release the ALT
  648.         key. Using the ALT key in this area, you can
  649.         enter a value from 32-255. Again, the background will
  650.         change indicating a change.
  651.  
  652.         And starting with v3.3, you should not be able to enter
  653.         any changes past the EOF. Doing that never really did
  654.  
  655.  
  656.  
  657.  ---  heXEdit  -------------------------------------  Page 10  ---
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.         anything anyway, I've just added a couple checks when
  667.         editing to help avoid any confusion.
  668.  
  669.  
  670.   7. G          - Goto an offset in the file.
  671.  
  672.         You are prompted for an offset to go to. You can enter
  673.         either a decimal number or a hexadecimal number. If you
  674.         press <ESC> while entering a number you will be placed
  675.         back in the View mode with no repositioning taking
  676.         place.  The BACKSPACE key can be used to edit your
  677.         entry. If you enter an offset that is beyond the
  678.         EOF (or < 0) you will be prompted again for a
  679.         number.
  680.  
  681.         To enter a decimal number just type in the number, no
  682.         commas, and press <ENTER>.
  683.  
  684.         To enter a hexadecimal number, type a '$' as the first
  685.         character and then continue entering the hex number.
  686.  
  687.         Also, if at anytime while entering a number, you enter
  688.         an 'A' through 'F' a '$' will be inserted into your
  689.         number at the beginning and your entry will be taken as
  690.         a hexadecimal number. For example:
  691.  
  692.                 Keystroke               Screen
  693.                 3                       3
  694.                 5                       35
  695.                 1                       351
  696.                 E                       $351E
  697.                 etc ...
  698.  
  699.  
  700.   8. H          - Change the offset display to base 16, hexadecimal.
  701.  
  702.  
  703.   9. L          - Load a new file
  704.  
  705.         You will enter the Loadfile box in order to select a new file
  706.         (as described earlier in this document under  D. Loadfile box.)
  707.  
  708.         Since you can't leave the edit mode without either saving any
  709.         changes or losing changes, you needn't worry about saving the
  710.         current file before loading a new one.
  711.  
  712.  
  713.   10. M         - Push position on marker stack.
  714.  
  715.         Your current position in the file can be saved with this
  716.         command and then be retrieved later on.
  717.  
  718.         Your position is saved on a stack. If the stack is full the
  719.         oldest position will be deleted and the rest of the entries
  720.  
  721.  
  722.  
  723.  ---  heXEdit  -------------------------------------  Page 11  ---
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.         will move down the stack to make room for the new entry. The
  733.         maximum number of positions you can save is 100. Also, when
  734.         your position is saved, it's location on the stack is reported
  735.         to you so you can see how full the marker stack is.
  736.  
  737.         This command can also be used while searching. If the search
  738.         string is found, you can press 'M' to save that position on the
  739.         marker stack and then continue searching.
  740.  
  741.  
  742.   11. N         - Search again using the last used search string
  743.  
  744.         If there is no previous search string, you will be prompted, as
  745.         if you pressed 'S', to enter a search string.
  746.  
  747.  
  748.   12. O         - Change the offset display to base 8, octal.
  749.  
  750.  
  751.   13. R         - Goto (retrieve) position
  752.  
  753.  
  754.         While viewing the file, if you do this command you
  755.         will be moved to the location specified by the top
  756.         marker stack entry. Once you have been moved to the new
  757.         location, the entry you retrieved will be deleted
  758.         from the marker stack. If there are no markers on the
  759.         stack, then nothing will happen.
  760.  
  761.  
  762.   14. S         - Search the file for a byte or text sequence.
  763.  
  764.         You will be prompted for the type of search (B)yte or
  765.         (T)ext.
  766.  
  767.         For a byte sequence, enter the bytes in hexadecimal
  768.         notation then press <ENTER>.  As with editing, you
  769.         must enter a complete byte, for the search to work
  770.         correctly, although I don't check for that here. You
  771.         can use the BACKSPACE key to go back and make
  772.         corrections.  The maximum length for a byte sequence is
  773.         9 bytes. I think that is plenty long enough, even 4
  774.         bytes would probably be enough to find what you're
  775.         looking for. For example, you might see this prompt :
  776.  
  777.                 Enter search bytes :
  778.  
  779.         Now you would just hit the numbers that make up the
  780.         bytes you want to search for, like :
  781.  
  782.                 D3 45 FF 00 C4 6E
  783.  
  784.         There is no need to enter a space between each byte as
  785.         I do that for you while you're entering your numbers.
  786.  
  787.  
  788.  
  789.  ---  heXEdit  -------------------------------------  Page 12  ---
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.         For a text sequence, just type in the text to search
  799.         for, no quotes are needed, and press <ENTER>. The
  800.         maximum length for a text sequence is 25 characters.
  801.         The search is case insensitive.
  802.  
  803.         If the search string is found, the display will move to
  804.         that string's location in the file and will be high-
  805.         lighted at the top of the screen. You can now press any
  806.         key to continue the search, press 'M' to Mark the
  807.         position or press <ESC> to stop searching.
  808.  
  809.         While XE is searching, you can press any key to interrupt
  810.         and stop the search.
  811.  
  812.         Just to make things simple for myself, every search
  813.         starts at the beginning of the file. Even on large
  814.         files, starting at the beginning to find something you
  815.         know is near the end doesn't take very long at all (at
  816.         least not on my 40Mhz 386!)
  817.  
  818.         And beginning with v3.5, the searching is done using the
  819.         Boyer-Moore algorithm. This should significantly speed up
  820.         searching; on ANY computer.
  821.  
  822.  
  823.   15. Z         - Clear all entries from marker stack
  824.  
  825.         This command will delete all entries from the marker stack.
  826.         Careful, there is no turning back from the results of this
  827.         command.
  828.  
  829.  
  830.   16. Alt+1 thru Alt+9    - Goto marked position
  831.  
  832.         Using these commands will move you to a previously marked
  833.         position without deleting the mark information.  The retrieve
  834.         command 'R' moves you to the last position and deletes the
  835.         mark, using Alt+1 - Alt+9 does not delete the mark. Alt+1 moves
  836.         you to the first marked position, Alt+2 moves you to the second
  837.         marked position, etc etc. If you try to move to a position that
  838.         has not been marked yet, nothing will happen except a message
  839.         telling you so.
  840.  
  841.  
  842. G. Other Notes
  843.  
  844.         If for some reason you rename XE.EXE you will need to rename
  845.         the help file (XE.HLP). For example, if you rename XE.EXE to
  846.         XEDIT.EXE, the help file should be renamed to XEDIT.HLP.
  847.  
  848.         And if for some other reason you have XE.EXE loaded under XE,
  849.         and then save the colors, you may need to force a re-read of
  850.         the last part of the file to get the correct information
  851.         loaded.
  852.  
  853.  
  854.  
  855.  ---  heXEdit  -------------------------------------  Page 13  ---
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.         The Loadfile box has a limit of 300 files or directories that
  865.         it can display for you. If you change to a directory with more
  866.         than 300, you will not see all of the files. Because of the way
  867.         I wrote that part of the program, 300 is about as high as I can
  868.         go due to stack space limitations. If you want to load a file
  869.         that is in a directory with more than 300 files, you'll have to
  870.         specify that filename on the command line when you start XE.
  871.  
  872.         XE does not support any video modes other than 80x25 text and
  873.         will work with a monochrome monitor. Just don't forget to
  874.         include the '/M' option on the command line and then save the
  875.         color configuration to retain the monochrome 'colors'.
  876.  
  877.  
  878. H. Comments
  879.  
  880.  
  881.         I would strongly suggest that you make a backup copy of any
  882.         file you're going to modify, just in case you decide later
  883.         you want the original file back. You should have a backup copy
  884.         anyway as a matter of safeguarding your files in case of
  885.         catastrophe.
  886.  
  887.         I have a 40Mhz 386 AT running MS-DOS 5.0. XE should work
  888.         with most system configurations though.
  889.  
  890.         Also, I don't expect any payment for use of this program. Feel
  891.         FREE to use it how you like, but be careful :).
  892.  
  893.  
  894.         Rob
  895.  
  896.  
  897.  
  898. Appendix
  899.  
  900.   A. Version History
  901.  
  902.             v1.0  04-08-91 - Initial writing
  903.             v1.1  05-16-91 - Minor internal changes
  904.             v1.2  07-04-91 - added Marker commands
  905.             v1.21 08-03-91 - increased marker stack size to 100
  906.                              added Z command; clear marker stack
  907.             v1.3  08-12-91 - added Goto Offset command
  908.                              fixed a bug or two
  909.             v2.0  09-25-91 - added Loadfile box (instead of typing in
  910.                                the filename)
  911.                              set to video page 0 at startup
  912.                                (this was done in case you shell out from
  913.                                another program and that program puts you
  914.                                in a video page other than 0, like Turbo
  915.                                Debugger. XE needs to be in video page
  916.                                0.  XE returns to the video page you
  917.                                where at before it started when you exit)
  918.  
  919.  
  920.  
  921.  ---  heXEdit  -------------------------------------  Page 14  ---
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.                              added backspace key use while editing (acts
  931.                                like left arrow key)
  932.                              added 'D', 'H' and 'O' commands while viewing
  933.                              changed Help command to 'F1' from 'H'
  934.                              made Search command case insensitive
  935.                              added ability to enter a drive designator
  936.                                on cmd line to start Loadfile box on that drive
  937.                              and of course fixed some bugs ...
  938.             v2.1  10-19-91 - decided I better try and trap most of the
  939.                                I/O, as opposed to only some, for errors,
  940.                                to avoid a possible run-time error
  941.                              allow loading of read-only files
  942.                              allow entry of ASCII chars 32-255 when
  943.                                editing in ASCII portion of display
  944.                                (formerly 32-126)
  945.                              check for and handle extremely long path names
  946.                                in display
  947.                              swapped ability to change Help screen color
  948.                                with Base convert
  949.                              search command now highlights found text,
  950.                                (no flashing arrow!)
  951.                              hidden files (and directories) are lowercase
  952.                                in Loadfile box
  953.                              and the usual bug fixes ...
  954.             v2.11 10-21-91 - fixed base convert color saving and loading
  955.                                from cfg file
  956.             v3.0  11-11-91 - fixed pagedown problem of going past EOF on
  957.                                display for files with a length approaching
  958.                                that of the buffer size
  959.                              added '%' into file indicator
  960.                              you can now call up the ascii chart and
  961.                                base convert from edit mode with
  962.                                Alt+A, Alt+B
  963.                              in edit mode, Pg Up/Dn now just goto first/
  964.                                last line. column position is not changed
  965.                              totally new help system  (yea!)
  966.             v3.01 11-12-91 - fixed extra '%' char left when going from
  967.                                100% to <100%
  968.                              allow config file to take on same name as
  969.                                executable; in case you rename XE.EXE
  970.             v3.02 11-18-91 - fixed bug when executing from second level
  971.                                or deeper sub-dir.
  972.             v3.1  11-25-91 - fixed configuration file saving problem
  973.                              added ALT+1 thru ALT+9 commands (goto
  974.                                marked position)
  975.                              restricted input length for base conversion
  976.             v3.2  01-23-92 - added colorbox for color selection, instead
  977.                                of entering numbers.
  978.             v3.3  01-29-92 - XE.CFG file is now history. Color
  979.                                information is saved in the executable
  980.                              added cmd line options /C, /M, /?, ?, /H
  981.                              slight (very) improvement in display speed
  982.                              restore cursor from a Ctrl-Brk input
  983.                              no more editing past the EOF
  984.  
  985.  
  986.  
  987.  ---  heXEdit  -------------------------------------  Page 15  ---
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.             v3.31 02-05-92 - fixed byte search problem with char case
  997.             v3.32 02-07-92 - fixed byte search problem with char case
  998.                                (this time for real. haste makes waste...)
  999.             v3.33 02-23-92 - change Loadfile box to show files in the
  1000.                                current directory of a drive (previously
  1001.                                root dir)
  1002.             v3.4  04-04-92 - added ability to abort searching
  1003.                              update '%' into file indicator during search
  1004.                              added Alt+A for ASCII chart cmd from View mode
  1005.                              added Alt+B for Base convert cmd from View mode
  1006.                              cursor is positioned at location of last search
  1007.                                item when going to edit mode; if that search
  1008.                                item is visible on screen in same file
  1009.                              changed default colors a little
  1010.                              file list in Loadfile box is now sorted by name
  1011.                              fixed PgUp bug in Loadfile box
  1012.             v3.5  04-23-92 - implemented the Boyer-Moore search algorithm
  1013.                                for a definite improvement in search
  1014.                                speed
  1015.             v3.51 06-10-92 - fixed search routine bug
  1016.             v3.52 06-29-92 - ditto
  1017.             v3.53 08-10-92 - allow 'C' (change colors) command in mono;
  1018.                                so you can save the mono colors to XE.
  1019.  
  1020.  
  1021.  
  1022.   B. Trademark information
  1023.  
  1024.         'Turbo Pascal' and 'Turbo Debugger' are registered trademarks
  1025.         of Borland International, Inc.
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  ---  heXEdit  -------------------------------------  Page 16  ---